<%@page import="com.wh.minihelp.user.domain.ChildInfo"%>
<%@page import="java.util.*"%>
<%@page import="com.wh.db.Page"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="page" tagdir="/WEB-INF/tags/page"%>
<%@page import="com.wh.minihelp.flower.domain.ChildFlower"%>
<html>
<head>
<%@ include file="/WEB-INF/common/init.jsp"%>
<title>明细页面</title>
</head>
<body>
	<div id='titleBar'>
		<a href="<%=path%>/u?m=overview">返回</a>
	</div>
	<%
		ChildInfo child = (ChildInfo) request.getAttribute("child");
		Page flowerPage = (Page) request.getAttribute("page");
		int start = flowerPage.getStart();
		String url = path + "/f?m=detail&childId=" + child.getId();
	%>
	<%
		/*查询条件*/
	%>
	<div class='detail_title'>
		<b>【<%=child.getName()%>】
		</b>红花明细
	</div>
	<div class="ov_child">
		<page:style1 page="<%=flowerPage%>" url="<%=url%>" />
		<table class="gridtable" style="width: 96%">
			<tr>
				<th style='width: 40px;' nowrap>序号</th>
				<th style='width: 35px;' nowrap>数量</th>
				<th style='width: 140px;' nowrap>类型</th>
				<th style='width: 90px;' nowrap>日期</th>
				<th style='width: 75px;' nowrap>记录人</th>
			</tr>
			<%
				List<ChildFlower> flowers = flowerPage.getList();
				int size = flowers.size();
				for (int i = 0; i < size; i++) {
					ChildFlower cf = flowers.get(i);
			%>
			<tr class="tr<%=i % 2%>">
				<td class="td1" rowspan="2"><%=(start + i)%></td>
				<td><%=cf.getFlowerNumber()%></td>
				<td><%=cf.getFlowerName()%></td>
				<td><%=cf.getFlowerDate()%></td>
				<td><%=cf.getOperAcountInfo().getName()%></td>
			</tr>
			<tr class="tr<%=i % 2%>">
				<td colspan="4"><%=cf.getFlowerDesc()%></td>
			</tr>
			<%
				}
			%>

		</table>
		<page:style1 page="<%=flowerPage%>" url="<%=url%>" />
	</div>